//
//  HistoryList.swift
//  test1
//
//  Created by Apple on 2021/6/8.
//

import Foundation
import SwiftUI

struct HLItem: Identifiable {
    var id: UUID = UUID()
    var image: Image
    var title: String
    var url: String
    
    static let `default` = HLItem(image: Image("baidu"), title: "百度一下..............", url: "https://www.baidu.com")
    static let `default1` = HLItem(image: Image("baidu"), title: "I'm QQ - 每一天，乐在沟通", url: "https://im.qq.com")
    static let `default2` = HLItem(image: Image("baidu"), title: "swift", url: "https://www.baidu.com/s?ie=utf-8&f=8&wd=swift")
    static let `default3` = HLItem(image: Image("baidu"), title: "百度百科", url: "https://baike.baidu.com")
    init(image: Image, title: String, url: String) {
        self.image = image
        self.title = title
        self.url = url
    }
}
